home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / sw / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  1.4 KB  |  50 lines

  1. #!smake
  2.  
  3. include ${ROOT}/usr/include/make/commondefs
  4.  
  5. # :++:  here, as in 
  6. #          src/exampleCode/inventor/sharedSV
  7. #          src/demos/audio/drive
  8. #       we have had to resort to building Inventor things with the eoe 
  9. #       and dev versions of Inventor 1.1.2 since these programs were not
  10. #       able to be ported over to Open Inventor 2.0 in time for v4.1 of 
  11. #       the toolbox.  
  12. #
  13. #       please refer to the README.Inventor at the top-of-tree for more 
  14. #       information about what one will have to do if one is likewise 
  15. #       trying to compile Inventor programs on 5.2 IRIX which have not 
  16. #       been ported to Inventor 2.0.  
  17. #
  18. #       (i.e., note use of $(MYROOT) below)
  19. #
  20.  
  21. MOTIFLIBS= -lSgm -lXm -lXt -lX11 -lPW
  22. INV_XT    = -lInventorXt $(MOTIFLIBS) -lInventor
  23. INVLIB    = $(INV_XT)
  24. MALLOCLIB= -lmalloc
  25.  
  26. # The following 2 lines were added to build w/Inventor 1.1.2 compatibility :++:
  27. LLDOPTS = -L$(MYROOT)/usr/lib
  28. LC++INCS= -I$(MYROOT)/usr/include
  29. LC++OPTS= +p
  30. LLDLIBS    = $(INVLIB) -limage -laudiofile -laudio -lfm -lgl -lm $(MALLOCLIB)
  31.  
  32. C++FILES= comm.c++ control.c++ display.c++ explode.c++ hud.c++ main.c++ \
  33.     resources.c++ stars.c++ ship.c++ sw_comm.c++ sound.c++ universe.c++ \
  34.     ship_regular.c++
  35.  
  36. SWSOBJECTS= comm.o serv_comm.o
  37.  
  38. TARGETS = sw sws
  39.  
  40. default all: $(TARGETS)
  41.  
  42. include ${COMMONRULES}
  43.  
  44.  
  45. sw: ${OBJECTS}
  46.     $(C++F) -o $@ $(OBJECTS) $(LDFLAGS)
  47.  
  48. sws: $(SWSOBJECTS)
  49.     $(C++F) -o $@ $(SWSOBJECTS) $(VLDOPTS)
  50.